<template>
<!-- 图文介绍 -->
  <div>
    <div>
         <van-nav-bar
      title="济南黑马程序员实战项目-ugo"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    </div>
    <div class="Tuheader">
        <h4 v-html="goodsdescList.title"></h4>
        <hr>
        <div class="Tuheader_body">
            <div v-html="goodsdescList.content">
            </div>
            <!-- <p>{{goodsdescList.content}}</p> -->
            <!-- <p>4G双卡双待，1300万像素后置摄像头和400万前置摄像头组合，首次加入HiFi模块，高保真音质，电池容量为3000mAh。</p>
            <p>小米Note顶配版升级了CPU、屏幕、运行内存，采用的5.7英寸夏普/JDI分辨率为2560 x 1440的2K屏，CPU采用的是高通骁龙810八核64位处理器，4GB的运行内存</p> -->
        </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
        goodsdescList: []
    };
  },
  created: function() {
      this.getGoodsdescList()
  },
  methods: {
      getGoodsdescList: async function() {
          const { data: res } = await this.$http.get('/api/goods/getdesc/88')
          console.log(res);
          this.goodsdescList = res.message[0];    
      },
      //返回
      onClickLeft: function() {
        //   self.location = document.referrer
        //返回上一页
        window.history.back(-1);
      }
 }
}
</script>

<style scoped>
div {
    display: block;
}
.Tuheader h4 {
    font-size: 16px;
    color: #226aff;
    text-align: center;
    margin: 15px 0;
}
hr {
    display: block;
    unicode-bidi: isolate;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
}
.Tuheader_body {
    overflow: hidden;
    padding: 0 5px;
}
/* img {
    width: 100%;
} */
p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}
</style>
